package cn.tedu.property_management_system.service;

import cn.tedu.property_management_system.entity.VO.OwnerVO;
import cn.tedu.property_management_system.entity.dto.OwnerDTO;
import cn.tedu.property_management_system.utils.JsonPage;

import java.util.List;

public interface IOwnerService {

    int addOwner(OwnerDTO ownerDTO);

    int deleteOwner(Integer id);

    int updateOwner(OwnerVO ownerVO);

    List<OwnerVO> getOwnerVO();

    List<OwnerVO> getOwnerVOByTelephonAndIdNumber(String telephon,String idNumber);

    void startCache();

    OwnerVO getById(Integer id);

    int deletes(List<OwnerVO> ids);

    List<String> getOwnerName();

    JsonPage<OwnerVO> pageSelect(Integer pageSize, Integer pageIndex);





}
